//数据字典
import request from '@/utils/request'

const api = {
    getlist:`/cms/sysDictType/queryPageList`,
    sava:`/cms/sysDictType/save`,
    deletedata:`/cms/sysDictType/delete`,
    queryByTypeCodeList:`/cms/sysDictData/queryByTypeCodeList`,
    editstatus:`/cms/sysDictType/updateStatus`, 
    
  }
  //列表
  export function getlist (parameter) {
    return request({
      url: api.getlist,
      method: 'post',
      data: parameter
    })
  }
  //新增
  export function sava (parameter) {
    return request({
      url: api.sava,
      method: 'post',
      data: parameter
    })
  }
  //删除
  export function deletedata (parameter) {
    return request({
      url: api.deletedata,
      method: 'post',
      data: parameter
    })
  }
  //修改状态
  export function editstatus (parameter) {
    return request({
      url: api.editstatus,
      method: 'post',
      data: parameter
    })
  }
  
  export function queryByTypeCodeList (parameter) {
    return request({
      url: api.queryByTypeCodeList,
      method: 'post',
      data: parameter
    })
  }
  
  

